<#import "../macro/components.ftl" as components/>
<#include "../macro/layout_default.ftl"/>

<@head>
<link rel="stylesheet" href="/misc/app/css/product_list.css"/>
<link href="/misc/adminlte-2.3.7/plugins/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/misc/adminlte-2.3.7/plugins/daterangepicker/daterangepicker.css"/>
</@head>

<@body>
<script src="/misc/app/js/qrcode_auto_product_detail.js"></script>
<script src="/misc/adminlte-2.3.7/plugins/daterangepicker/moment.min.js"></script>
<script src="/misc/adminlte-2.3.7/plugins/daterangepicker/daterangepicker.js"></script>
<script src="/misc/adminlte-2.3.7/plugins/twitter-bootstrap-v2/docs/assets/js/browser.js"></script>
<script src="/misc/adminlte-2.3.7/plugins/twitter-bootstrap-v2/docs/assets/js/bootstrap-typeahead.js"></script>
</@body>

<@layout_default>
<div class="box">
    <div class="box-header with-border">
        <span class="pull-right text-muted">共 ${pagelist.resultTotal} 条记录</span>
        <input type="hidden" id="resultTotal_hidden" value=" ${pagelist.resultTotal}" />
        <form class="form-inline" action="/qrcodeautoproduct/detail">
             <input type="hidden" class="form-control" name="prodBillcode" value="${prodBillcode!}" autocomplete="off"/>
             <div class="input-group">
                <div class="input-group-addon">生产批次号:</div>
                <input type="text" class="form-control" style="width: 260px" name="prodBatchno" value="${prodBatchno!}" 
                placeholder="生产批次号" autocomplete="off"/>
            </div>
            <div class="input-group">
                <div class="input-group-addon">班组编码:</div>
                <input type="text" class="form-control" style="width: 260px" name="groupcode" value="${groupcode!}" 
                placeholder="班组编码" autocomplete="off"/>
            </div>
            <div class="input-group">
                <div class="input-group-addon">箱码编号:</div>
                <input type="text" class="form-control" style="width: 260px" name="outerboxId" value="${outerboxId!}" 
                placeholder="箱码编号" autocomplete="off"/>
            </div>
            <div class="input-group">
                <div class="input-group-addon">瓶码编号:</div>
                <input type="text" class="form-control" style="width: 260px" name="qrcodeId" value="${qrcodeId!}" 
                placeholder="瓶码编号" autocomplete="off"/>
            </div>
			&nbsp; &nbsp; &nbsp;	
            <button type="submit" class="btn btn-warning"><i class="fa fa-search"></i> 查询</button>&nbsp; &nbsp; &nbsp;
        </form>
        <form class="form-inline hide">
            <input class="form-control"/>
            <input type="email" class="form-control"/>
            <button type="submit" class="btn btn-default">Send invitation</button>
        </form>
    </div>

    <!-- /.box-header -->
    <div class="box-body">
        <table class="table table-striped table-hover">
            <tr>
            	<th>产品</th>
                <th>产品批次号</th>
                <th>班组编号</th>
                <th>箱码编号</th>
                <th>小箱码</th>
                <th>瓶码编号</th>
                <th>上传时间</th>
            </tr>
            <#list pagelist.result as item>
                <tr >
                   	<td style="vertical-align:middle;">${item.proname!}</td>
                    <td style="vertical-align:middle;">${item.prodBatchno}</td>
                    <td style="vertical-align:middle;">${item.prod_groupcode!}</td>
                    <td style="vertical-align:middle;">${item.outerboxId}</td>
                    <td style="vertical-align:middle;">${item.innerBox}</td>
                    <td style="vertical-align:middle;">${item.qrcodeId}</td>
                    <td style="vertical-align:middle;">${item.ctime?number_to_datetime}</td>
                </tr>
            </#list>
        </table>
        <table class="table table-striped table-hover">
        	<tr>
        		<td colspan="13" style="text-align:right;background-color:white;">
        			<a href="javascript:void(0);" name="btn_qrcodeproduct_export1"><i class="glyphicon glyphicon-save"></i> 数据导出</a>
        		</td>
        	</tr>
        </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer text-center">
       <@components.pagination "${pagelist.rquesturl}&page=$page",pagelist.page,pagelist.pageTotal/>
    </div>
</div>

</@layout_default>